package Model::CategoriesDao;

	<%args>
		$cat_id => undef
	</%args>

	<%init>
		return undef unless( defined $aid );

		$dbx{'test'}->select({ 
			fields => '*',
			table => 'wae03_category c',
			where => { 'c.id' => $cat_id }
		});
		
		my $category = $dbx{'test'}->fetchrow_hashref();
		
		return undef unless( defined $category );
		
		return $category;
	</%init>
</%method>



</%init> 

1;